home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16112 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: chrism.demon.co.uk!chris
  2. From: Chris Marriott <chris@chrism.demon.co.uk>
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.nt.pre-release,comp.lang.c++
  4. Subject: Re: Catastrophic OLE Error
  5. Date: Mon, 8 Apr 1996 17:20:55 +0100
  6. Organization: SkyMap Software
  7. Distribution: world
  8. Message-ID: <Hx4p8PAnzTaxEw+2@chrism.demon.co.uk>
  9. References: <31689491.151762072@newsserv.ctp.com>
  10. NNTP-Posting-Host: chrism.demon.co.uk
  11. X-NNTP-Posting-Host: chrism.demon.co.uk
  12. MIME-Version: 1.0
  13. X-Newsreader: Turnpike Version 1.11 <xvymwJsTYh8aYs0yGmHsPZXi9Q>
  14.  
  15. In article <31689491.151762072@newsserv.ctp.com>, "Stephen D. Ayers"
  16. <sayer@ctp.com> writes
  17. >I have built a very small OCX using the VC++ 4.1 project Wizard. The
  18. >control supports a single method with no arguments and no return
  19. >value.
  20. >
  21. >The VC++ OLE test container tool works fine. It allows me to invoke
  22. >methods without difficulty.
  23. >
  24. >However, whenever I try invoking methods on the object from VB, VBA
  25. >within Excel, or VC++ clients they all return "OLE Automation error -
  26. >Catastrophic failure" after a successful object create.
  27.  
  28. OCXs and OLE Automation are NOT the same thing! It sounds as though
  29. you're attempting to use automation on an object which does not expose
  30. automation interfaces.
  31.  
  32. Chris
  33.  
  34. --------------------------------------------------------------------------
  35.  Chris Marriott, Warrington, UK      | Author of SkyMap v3 award-winning 
  36.  chris@chrism.demon.co.uk            | shareware Win31/Win95 planetarium.
  37.             For full info, see http://www.execpc.com/~skymap  
  38.       Author member of Association of Shareware Professionals (ASP) 
  39. -------------------------------------------------------------------------- 
  40.  
  41.